home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2004 May / pc player 2004-05.iso / Demos / FarCry / Data1.cab / _B4DD2AAA63D34D929386661BA7D8F275 < prev    next >
Encoding:
Text File  |  2004-01-06  |  3.5 KB  |  137 lines

  1. Script:LoadScript("scripts/materials/commoneffects.lua");
  2.  
  3. Materials["mat_wood_heavy"] = {
  4.     type="mat_wood_heavy",
  5. -------------------------------------
  6.     PhysicsSounds=PhysicsSoundsTable.Hard,
  7. -------------------------------------    
  8.     bullet_drop_single = CommonEffects.common_bullet_drop_single_wood,
  9.     bullet_drop_rapid = CommonEffects.common_bullet_drop_rapid_wood,
  10. -------------------------------------    
  11.     bullet_hit = {
  12.         sounds = {
  13.             {"Sounds/Bullethits/Wheavy1.wav",SOUND_UNSCALABLE,200,5,60},
  14.             {"Sounds/Bullethits/Wheavy2.wav",SOUND_UNSCALABLE,200,5,60},
  15.             {"Sounds/Bullethits/Wheavy3.wav",SOUND_UNSCALABLE,200,5,60},
  16.             {"Sounds/Bullethits/Wheavy4.wav",SOUND_UNSCALABLE,200,5,60},
  17.             
  18.         },
  19.         
  20.         decal = { 
  21.             texture = System:LoadTexture("Textures/Decal/wood.dds"),
  22.             scale = 0.04,
  23.             },
  24.         
  25.         particleEffects = {
  26.             name = "bullet.hit_wood.a",
  27.         },
  28.     },
  29.  
  30.     pancor_bullet_hit = {
  31.         sounds = {
  32.             {"Sounds/Bullethits/Wheavy1.wav",SOUND_UNSCALABLE,200,5,60},
  33.             {"Sounds/Bullethits/Wheavy2.wav",SOUND_UNSCALABLE,200,5,60},
  34.             {"Sounds/Bullethits/Wheavy3.wav",SOUND_UNSCALABLE,200,5,60},
  35.             {"Sounds/Bullethits/Wheavy4.wav",SOUND_UNSCALABLE,200,5,60},
  36.             },
  37.         
  38.         decal = { 
  39.             texture = System:LoadTexture("Textures/Decal/wood.dds"),
  40.             scale = 0.04,
  41.                 },
  42.         particleEffects = {
  43.             name = "bullet.hit_wood_pancor.a",
  44.                 }, 
  45.     },
  46.  
  47.     flashgrenade_hit =         
  48.     {
  49.             particles = 
  50.         {
  51.             { 
  52.                 focus = 0.5,
  53.                 color = {1,1,1},
  54.                 speed = 8.0, --default 5
  55.                 count = 120, --default 75
  56.                 size = 0.1, 
  57.                 size_speed=0,
  58.                 gravity = {x = 0.0, y = 0.0, z = -8},
  59.                 rotation = {x = 0.0, y = 0.0, z = 20},
  60.                 lifetime=2.00,
  61.                 tid = System:LoadTexture("textures\\sprites\\chip.dds"),
  62.                 tail_length = 0.0,
  63.                 frames=1,
  64.  
  65.             },
  66.         },
  67.     },
  68.     projectile_hit =     {
  69.     
  70.         particleEffects = {
  71.             name = "explosions.rocket.a",
  72.         },    
  73.     
  74.             particles = 
  75.         {
  76.             { 
  77.                 focus = 0.5,
  78.                 color = {1,1,1},
  79.                 speed = 8.0, --default 5
  80.                 count = 120, --default 75
  81.                 size = 0.1, 
  82.                 size_speed=0,
  83.                 gravity = {x = 0.0, y = 0.0, z = -8},
  84.                 rotation = {x = 0.0, y = 0.0, z = 20},
  85.                 lifetime=2.00,
  86.                 tid = System:LoadTexture("textures\\sprites\\chip.dds"),
  87.                 tail_length = 0.0,
  88.                 frames=1,
  89.  
  90.             },
  91.         },
  92.     },
  93.  
  94.  
  95.     mortar_hit = CommonEffects.common_mortar_hit,
  96.     smokegrenade_hit = CommonEffects.common_smokegrenade_hit,
  97.  
  98.     grenade_hit = CommonEffects.common_grenade_hit,
  99.     melee_slash = {
  100.         sounds = {
  101.             {"sounds/weapons/machete/machetewood1.wav",SOUND_UNSCALABLE,185,5,30},
  102.             {"sounds/weapons/machete/machetewood2.wav",SOUND_UNSCALABLE,185,5,30},
  103.             {"sounds/weapons/machete/machetewood3.wav",SOUND_UNSCALABLE,185,5,30},
  104.         },
  105.         particles =  CommonEffects.common_machete_hit_wood_part.particles,
  106.         decal = { 
  107.             texture = System:LoadTexture("Textures/Decal/wood_slash.dds"),
  108.             scale = 0.04,
  109.         },
  110.     },
  111. -------------------------------------
  112.     player_walk = CommonEffects.player_wood_walk,
  113.     player_run = CommonEffects.player_wood_run,
  114.     player_crouch = CommonEffects.player_wood_crouch,
  115.     player_prone = CommonEffects.player_wood_prone,
  116.     player_walk_inwater = CommonEffects.player_walk_inwater,
  117.     
  118.     player_drop = {
  119.         sounds = {
  120.             {"sounds/player/bodyfalls/bodyfallwood1.wav",SOUND_UNSCALABLE,210,10,150},
  121.         },
  122. --        decal = { 
  123. --            texture = System:LoadTexture("Textures/Decal/Default.tga"),
  124. --            scale = 0.1,
  125. --        },
  126.     },
  127.     gameplay_physic = {
  128.         piercing_resistence = 15,
  129.         friction = 0.5,
  130.         bouncyness= 0.05, --default 0
  131.     },
  132.  
  133.     AI = {
  134.         fImpactRadius = 5,
  135.     },
  136.             
  137. }